﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ClassLibrary.DAO;

namespace mprsc
{
    public partial class ReportViewer : Form
    {
        TblBookingDAO bookDAO = new TblBookingDAO(Global.CONNECTION_STRING);

        public DataTable dt;

        public ReportViewer()
        {
            InitializeComponent();
        }

        private void ReportViewer_Load(object sender, EventArgs e)
        {
            this.crystalReportViewer.RefreshReport();
            this.WindowState = FormWindowState.Maximized;
        }

        public void SetReport(object reportSource){
            this.crystalReportViewer.ReportSource = reportSource;
        }
    }
}
